﻿package core.display {
	
	import flash.display.MovieClip;
	import core.display.AvatarMask;
	import base.BaseMc;
	
	
	public class AvatarCard extends BaseMc {
		
		//头像 240x240
		public function AvatarCard() {
			// constructor code
		}
		
		
		private function getMaskObj():MovieClip {
			var mask:MovieClip = new MovieClip();
			mask.graphics.beginFill(0x000000,1);
			mask.graphics.drawRoundRect(0,0,240,240,100,100);
			mask.graphics.endFill();
			mask.width = 240;
			mask.height = 240;
			mask.x = 20;
			mask.y = 20;
			return mask;
		}
		
		protected override function onInit():void {
			var m:AvatarMask = new AvatarMask();
			m.x = 30;
			m.y = 28;
			this.addChild(m);
			this.avarta.mask = m;
		}
	}
	
}
